package com.hsbc.dev.teamo4.sms.sm.po;

import com.hsbc.dev.teamo4.sms.common.base.EntityBean;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import java.util.UUID;

/**
 * @author:Nina
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.sm.po
 * @Description: User
 * @Date date: 2018/7/25
 */
public class User extends EntityBean {
    @NotBlank(message = "id  cannot be blank")
    private String id;
    @NotBlank(message = "name  cannot be blank")
    private String name;
    @NotBlank(message = "userSex  cannot be blank")
    private Boolean userSex;
    private String userPhone;
    @Email
    private String userEmail;
    @NotBlank(message = "accountId  cannot be blank")
    private String accountId;

    public User(){}

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getUserSex() {
        return userSex;
    }

    public void setUserSex(Boolean userSex) {
        this.userSex = userSex;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", userSex=" + userSex +
                ", userPhone='" + userPhone + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", accountId='" + accountId + '\'' +
                ", entity='" + super.toString() + '\'' +
                '}';
    }
}
